package cn.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.blog.dto.MatchPKInfoSelect;
import cn.blog.entity.MatchPKInfo;
import cn.blog.entity.MatchPKInfoExample;

@Mapper
public interface MatchPKInfoMapper {
	long countByExample(MatchPKInfoExample example);

	int deleteByExample(MatchPKInfoExample example);

	int deleteByPrimaryKey(String pkid);

	int insert(MatchPKInfo record);

	int insertSelective(MatchPKInfo record);

	List<MatchPKInfo> selectByExample(MatchPKInfoExample example);

	MatchPKInfo selectByPrimaryKey(String pkid);

	int updateByExampleSelective(@Param("record") MatchPKInfo record, @Param("example") MatchPKInfoExample example);

	int updateByExample(@Param("record") MatchPKInfo record, @Param("example") MatchPKInfoExample example);

	int updateByPrimaryKeySelective(MatchPKInfo record);

	int updateByPrimaryKey(MatchPKInfo record);

	@Select("SELECT * FROM `match_pk_info` WHERE matchId=#{id}")
	List<MatchPKInfoSelect> selectByMatchId(String id);
}